package PTA.javabianchengjichu2;


import java.util.Scanner;

enum Grade{
    A,B,C,D,E;
}
public class ex05 {

 public static Grade getGrade(int a){
     if(a>=90&&a<=100){
         return Grade.A;
     }else if(a>=80&&a<90)
     {
         return Grade.B;
     }
     else if(a>=70&&a<80)
     {
         return Grade.C;
     }
     else if(a>=60&&a<70)
     {
         return Grade.D;
     }
     else
     {
         return Grade.E;
     }









 }

    public static void printGradeInfo(Grade grade){
        System.out.println("class name="+Grade.class);
        System.out.println("grade value="+grade);
    }

    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
       int a=0;
        while(true)
        {
            a=sc.nextInt();
            switch(getGrade(a))
            {
                case A:
                    System.out.println("Excellent");
                    printGradeInfo(Grade.A);
                    break;
                case B:
                    System.out.println("Good");
                    printGradeInfo(Grade.B);
                    break;
                case C:
                    System.out.println("Average");
                    printGradeInfo(Grade.C);
                    break;
                case D:
                    System.out.println("Fair");
                    printGradeInfo(Grade.D);
                    break;
                default:
                    System.out.println("Poor");
                    printGradeInfo(Grade.E);
                    break;
            }
        }



    }
}
